package com.ruoyi.aqi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.aqi.mapper.AqiDayMapper;
import com.ruoyi.aqi.domain.AqiDay;
import com.ruoyi.aqi.service.IAqiDayService;

/**
 * AQI天Service业务层处理
 * 
 * @author houtaroy
 * @date 2024-03-25
 */
@Service
public class AqiDayServiceImpl implements IAqiDayService 
{
    @Autowired
    private AqiDayMapper aqiDayMapper;

    /**
     * 查询AQI天
     * 
     * @param id AQI天主键
     * @return AQI天
     */
    @Override
    public AqiDay selectAqiDayById(Integer id)
    {
        return aqiDayMapper.selectAqiDayById(id);
    }

    /**
     * 查询AQI天列表
     * 
     * @param aqiDay AQI天
     * @return AQI天
     */
    @Override
    public List<AqiDay> selectAqiDayList(AqiDay aqiDay)
    {
        return aqiDayMapper.selectAqiDayList(aqiDay);
    }

    /**
     * 新增AQI天
     * 
     * @param aqiDay AQI天
     * @return 结果
     */
    @Override
    public int insertAqiDay(AqiDay aqiDay)
    {
        return aqiDayMapper.insertAqiDay(aqiDay);
    }

    /**
     * 修改AQI天
     * 
     * @param aqiDay AQI天
     * @return 结果
     */
    @Override
    public int updateAqiDay(AqiDay aqiDay)
    {
        return aqiDayMapper.updateAqiDay(aqiDay);
    }

    /**
     * 批量删除AQI天
     * 
     * @param ids 需要删除的AQI天主键
     * @return 结果
     */
    @Override
    public int deleteAqiDayByIds(Integer[] ids)
    {
        return aqiDayMapper.deleteAqiDayByIds(ids);
    }

    /**
     * 删除AQI天信息
     * 
     * @param id AQI天主键
     * @return 结果
     */
    @Override
    public int deleteAqiDayById(Integer id)
    {
        return aqiDayMapper.deleteAqiDayById(id);
    }
}
